package com.xin.service;

import com.xin.pojo.Books;



import java.util.List;

/**
 * @author WYX
 * @create 2020-04-04-9:35
 */
public interface BookService {

    //增加一本书
    int addBook(Books books);
    //修改一本书
    int updateBook(Books books);
    //删除一本书
    int deleteBookById(int id);
    //查询一本书
    Books queryBookById(int id);
    //查询全部书
    List<Books> queryAllBook();
    //通过书名查书籍
    Books queryBookByName(String bookName);
}
